package com.zx.server.api.pojo;

import org.springframework.beans.factory.annotation.Value;

/**
 * @auther: zhangxin
 * @Description:
 */
public class PageReq {

    @Value("1")
    String key;
    @Value("5")
    Integer limit;
    @Value("0")
    Integer offset;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    @Override
    public String toString() {
        return "PageReq{" +
                "key='" + key + '\'' +
                ", limit=" + limit +
                ", offset=" + offset +
                '}';
    }
}
